package collectionFramework;

import java.util.PriorityQueue;

public class MyPriorityQueue {

	public static void main(String[] args) {
		PriorityQueue<Integer> pq = new PriorityQueue<Integer>();
		pq.add(100);
		pq.add(200);
		pq.add(300);
		pq.add(400);
		System.out.println("Stack: " + pq);
		System.out.println(pq.poll());
		System.out.println("Stack(after poll): " + pq);
		System.out.println(pq.peek());
		System.out.println("Stack(after peek): " + pq);
	}

}
